﻿@if (Model != null && Model.Shops != null)
{
    foreach (var item in Model.Shops)
    {
    <p><a data-toggle="modal" href="#locationModelsModal-@item.ShopId" class="btn btn-default">@string.Format("Расположение моделей в {0}", @item.Name)</a></p>
    <div class="modal fade" id="locationModelsModal-@item.ShopId" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog" style="width: 1470px; height: 900px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title">Расположение моделей</h4>
                </div>
                <div class="modal-body">
                    @{
        var imageShopUrl = string.Format("/Files/Organization-{0}/Shop-{1}/{2}/800x600/{3}{4}", @item.OrganizationId, @item.ShopId, @item.MapUrl, @item.MapUrl, @item.TypeImage);
                    }
                    <div>
                        <img class="photo-location-block" src="@imageShopUrl" alt="" id="watermarked"  />
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-default" data-dismiss="modal">Закрыть</button>
                </div>
            </div>
        </div>
    </div>
    }
}